package com.zx.sys.utils;

import java.util.HashMap;
import java.util.Map;

import com.zx.sys.constast.SysConstast;

public class ResultObj {
	private Integer code=0;
	private String msg;
	private Map<String, Object> data;
	
	
	
	public ResultObj(Integer code) {
		super();
		this.code = code;
		data = new HashMap<String, Object>();
	}

	public ResultObj(Integer code, String msg){
		super();
		this.code = code;
		this.msg = msg;
		data = new HashMap<String, Object>();
	}
	
	public void data(String key,Object obj){
		data.put(key, obj);
	}
	
	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
